package com.csu.jpetstore.mybatis.domain;

import lombok.Data;

import java.math.BigDecimal;

@Data
public class Item {
    private String itemId;
    private String productId;
    private BigDecimal listPrice;
    private BigDecimal unitCost;
    private int supplierId;
    private String status;
    private String attribute1;
    private String attribute2;
    private String attribute3;
    private String attribute4;
    private String attribute5;
    private Product product;
    private int quantity;

    public void setItemId(String itemId) {
        this.itemId = itemId.trim();
    }

    public String toString() {
        return "(" + getItemId() + "-" + getProductId() + ")";
    }
}
